var formApp = angular.module('formApp', []);
function formController($scope, $http) {
    $scope.formData = {};
    $scope.processForm = function () {
        $http.post('/blog/angular/test', $scope.formData).success(
            function (data) {
                if (!data.success) {
                    console.log('success');
                    $scope.formData = data;
                } else {
                    console.log('error111');
                }
            }
        );
    };
}
